package jjn.effective_java.chapter6.item34;

import java.util.List;

/**
 * @author Jiang Jining
 * @since 2023-04-26 23:25
 */
public class CommandEnumTest {
    public static void main(String[] args) {
        List<String> list = List.of("TY202304260001", "NG202304260002", "QT202304260003");
        list.forEach(commandNumber -> {
            System.out.print("CommandNumber is: " + commandNumber);
            System.out.println(", type name is: " + CommandEnum.getTypeName(commandNumber));
        });
    }
}
